@charset "utf-8";

.body-main{
  position: relative;
  .index-floor{
    .floor{
      padding-top: 10px;
      width: 100%;
    }
    .floor:nth-child(2n){
      background: url("../../images/banner-img1.webp") no-repeat;
      background-position: center top;
      height: 120px;
      margin: 10px 0;
      >a{
        margin-top: -10px;
        display: block;
        height: 120px;
      }
    }
    .floor-title{
      width: 1180px;
      margin: 0 auto;
      height: 24px;
      line-height: 24px;
      color: #333;
      .title{
        font-size: 20px;
        height: 20px;
        margin-right: 10px;
      }
      >a{
        color: #666;
      }
    }
    .floor-body{
      width: 100%;
      margin: 10px 0;
      .floor-box{
        width: 1180px;
        margin: 0 auto;
        position: relative;
        .hover-img:hover{
          box-shadow: 0 15px 30px rgba(0, 0, 0,.2);
          border-radius: 5px;
          transform: translateY(-2px);
          transition: .2s all ease-out;
        }
        .floor-box-img{
          display: block;
          height: 242px;
          width: 280px; 
          margin-bottom: 20px;
          margin-right: 20px;
          float: left;
          &:last-of-type{
            margin-right: 0px;
          }
          img{
            width: 100%;
            height: 100%;
            border-radius: 5px;
          }
        }
      .head-img-item{
        display: block;
        float: left;
        margin-right: 20px;
        width: 580px;
        height: 460px;
        cursor: pointer;
      }
      .product-item{
        display: block;
        float: left;
        height: 460px;
        width: 280px;
        color: #333;
        padding: 30px 20px ;
        text-align: center;
        background: #fff;
        font-size: 14px;
        line-height: 20px;
        margin-right: 20px;
        margin-bottom: 20px;
        .top-label{
          width: 80px;
          margin: 0 auto;
          text-align: center;
        }
        .label-orange{
          background: #f17f38;
          color: #fff;
        }
        img{
          height: 240px;
          width: 240px;
          margin: 20px auto 0;
        }
        .name{
          font-size: 18px;
          line-height: 25px;
          margin-top: 30px;
          text-overflow: ellipsis;
          overflow: hidden;
          white-space: nowrap;
        }
        .desc{
          color: #999;
          text-overflow: ellipsis;
          overflow: hidden;
          white-space: nowrap;
        }
        .price{
          line-height: 36px;
          margin: 10px;
          .cur-price{
            color: #dd0e00;
            font-size: 20px;
          }
        }
      }
      .product-item:nth-child(3){
        margin: 0;
      }
      .product-item:last-of-type{
        margin: 0;
      }
      .feed-list{
        margin-bottom: 20px;
        a{
          display: block;
          color: #333;
        }
        .feed-item{
          display: block;
          float: left;
          height: 345px;
          width: 220px;
          color: #333;
          padding: 20px ;
          text-align: center;
          background: #fff;
          font-size: 14px;
          line-height: 20px;
          margin-right: 20px;
          margin-bottom: 20px;
          &:nth-child(5n){
          margin-right: 0px;
          }
          >.item-img{
            width: 180px;
            height: 180px;
            img{
              width: 100%;
            }
          } 
          .name{
            margin-top: 25px;
            font-size: 14px;
            height: 40px;
          }
          .price{
            color:#dd0e00;
            font-size: 20px;
            margin-top: 10px;
            line-height: 50px;
          }
          .label-line{
            color: #f17f38;
            font-size: 12px;
            line-height: 12px;
            .label{
              display: inline-block;
              border: 1px solid #f17f38;
              margin: 1px;
              height: 15px;
              width: 50px;
            }
          }
        }
      }
      }
    }

    .feed-append-box{
      margin-top: 20px;
      font-size: 18px;
      text-align: center;

      .feed-bottom-text{
        display: inline-block;
        position: relative;
        padding: 5px 100px;
        &::before{
          background: #333;
          content: '';
          display: block;
          height: 1px;
          position: absolute;
          top: 50%;
          width: 90px;
          left: 0;
        }
        &::after{
          background: #333;
          content: '';
          display: block;
          height: 1px;
          position: absolute;
          top: 50%;
          width: 90px;
          right: 0;
        }
      }
      
    }
  }

  .index-elevator-box{
    position: fixed;
    top: 50%;
    border: 1px solid #f0f0f0;
    box-shadow: 0 0 1px #999;
    left: 50%;
    margin-left: -680px;
    background: #fff;
    z-index: 30;
    transform: scale(0);
    transition: all 0.5s;
    // display: none;
    .elevator-item{
      display: block;
      padding: 0 10px;
      transition: all 0.2s linear;
      // &:hover{
      //   background-color: #f6f6f6;
      //   color: red;
      //   font-weight: 700;
      // }
      // &:hover div{
      //   transform: translateX(2px);
      // }
      &:last-child div{
          border: none;
      }
      div{
        padding: 6px 0;
        border-bottom: 1px solid #eee;
        text-align: center;
        transition: all 0.2s linear;
        
      }
    }
  }
}

.active{
  transform: translateX(2px);
  color: red;
  font-weight: 700;
}
